﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelectUser.aspx.cs" Inherits="DBA.Web.ProjectManage.SelectUser" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" />

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title></title>
<link href="/Styles/azure/style.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="/Styles/css/core.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="/Scripts/lhgdialog/skins/default.css" rel="stylesheet" type="text/css" />
<!--[if IE]>
<link href="themes/css/ieHack.css" rel="stylesheet" type="text/css" media="screen"/>
<![endif]-->
    <script src="/Scripts/jquery-1.7.1.js" type="text/javascript"></script>
<script src="/Scripts/jquery.bgiframe.js" type="text/javascript"></script>
<script src="/Scripts/dwz.core.js" type="text/javascript"></script>
<script src="/Scripts/dwz.ui.js" type="text/javascript"></script>
<script src="/Scripts/dwz.sortDrag.js" type="text/javascript"></script>
<script src="/Scripts/dwz.cssTable.js" type="text/javascript"></script>
<script src="/Scripts/dwz.stable.js" type="text/javascript"></script>
<script src="/Scripts/dwz.pagination.js" type="text/javascript"></script>
<script src="/Scripts/dwz.drag.js" type="text/javascript"></script>
<script src="/Scripts/dwz.barDrag.js" type="text/javascript"></script>
<script src="/Scripts/lhgdialog/lhgdialog.js" type="text/javascript"></script>
<script src="/Scripts/Public.js" type="text/javascript"></script>
<!--
<script src="bin/dwz.min.js" type="text/javascript"></script>
-->

    <script type="text/javascript">
        var winAdd;
        function turnModifyPage(id, name) {
        
            Public.GetParentWindow().setSelectUser(id, name);
            Public.CloseWindow();
        }

      

        function searchHandler() {
            __doPostBack("linkBtnSearch", "");
        }
        function initTable(_box) {
            var $p = $(_box || document);
            //tables
            $("table.table", $p).jTable();
            // css tables
            $('table.list', $p).cssTable();
        }

        function RefreshChildWin() {
            winAdd.dgWin.RefreshGrid();
        }

        function ddd() {
            $("#dialog-form").dialog("open");
        }
        function addDate() {
            Public.ShowWindow('添加教师信息', "/SystemManage/EmployeeManage/EmployeeAdd.aspx", 700, 650);
        }
    </script>
    <script type="text/javascript">
        $(function () {
            //初始化
            DWZ.init("/dwz.frag.xml");
            //必须要加这个不然第一次加载的时候表格数据出不来
            setTimeout("initTable()", 1);
            //updatepanel回调完成后初始化表格
            Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function () {
                initTable();
            });

        });
     
	</script>
</head>
<body style="background-color:#fff;">
    <form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>    
    <div class="pageHeader">
      <div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>
					姓名：<asp:TextBox ID="txtName" runat="server" style="width:100px;" CssClass="textInput"></asp:TextBox>
				</td>
                <td>
					工资号：<asp:TextBox ID="txtSalaryID" runat="server" style="width:100px;" CssClass="textInput"></asp:TextBox>
				</td>
                <td>
					系：<asp:DropDownList ID="ddlXi" runat="server" Height="20px" 
                        Width="142px">
                    </asp:DropDownList>
				</td>
                <td>
					所：<asp:DropDownList ID="ddlSuo" runat="server" Height="20px" 
                        Width="142px">
                    </asp:DropDownList>
				</td>
			</tr>
            <tr>
              <td>
					部门：<asp:DropDownList ID="ddlDept" runat="server" Height="20px" 
                        Width="142px">
                    </asp:DropDownList>
				</td>
                 <td>
					技术职务：<asp:DropDownList ID="ddlJszwzg" runat="server" Height="20px" Width="142px">
                            </asp:DropDownList>
				</td>
            </tr>
		</table>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button  onclick="javascript:searchHandler();return false;">检索</button></div></div></li>
				<li style="display:none;"><a class="button" href="#" onclick="javascirpt:ddd();return false;"><span>高级检索</span></a></li>
			</ul>
		</div>
        <div style="display:none;">
                    <asp:UpdatePanel ID="UpdatePanel7" runat="server">
                    <ContentTemplate>
                    <asp:HiddenField ID="hdMaskMemberId" runat="server" />
                      <asp:LinkButton ID="linkBtnSearch" runat="server" onclick="linkBtnSearch_Click" ></asp:LinkButton>      
                      <asp:LinkButton ID="linkBtnMaskSearch" runat="server" onclick="linkBtnMaskSearch_Click" ></asp:LinkButton> 
                        <asp:HiddenField ID="hidDeleString" runat="server" />  
                      <asp:LinkButton ID="linkBtnDeleSelect" runat="server" onclick="linkBtnDeleSelect_Click" ></asp:LinkButton> 
                    </ContentTemplate>
                    </asp:UpdatePanel>
         </div>
       </div>     
	</div>
<div class="pageContent">
	<div class="panelBar">
		
	</div>
<asp:UpdatePanel runat="server" ID="UpdatePanel3">
<ContentTemplate>
    <asp:HiddenField ID="hdSaveID" runat="server" /> <%--保存选择的类型id--%>   

	<table class="table" width="100%" layoutH="138" >
		<thead>
			<tr>
                <th>选择</th>
                <th>姓名</th>
                <th>工资号</th>
                <th>性别</th>
                <th>系</th>
                <th>所</th>
                <th>部门</th>
                <th>技术职务</th>
                <th>研究方向</th>
             
			</tr>
		</thead>
		<tbody id="tableBody">
        <asp:Repeater ID="replData" runat="server">
        <ItemTemplate>
			<tr target="UserID" rel="<%# Eval("EmployeeID") %>">
                 <td><a href="javascript:void(0);" onclick="javascript:turnModifyPage($(this).getTabRowId(),'<%# Eval("Name")%>');return false;">选择</a></td>
                <td><%# Eval("Name")%></td>
                <td><%# Eval("SalaryID")%></td>
                <td><%# Eval("Sex").ToString().ToUpper() == "TRUE"?"男":"女"%></td>
                <td><%# Eval("XiName")%></td>
                <td><%# Eval("SuoName")%></td>
                <td><%# Eval("DptName")%></td>
                <td><%# Eval("JsName")%></td>
                <td><%# Eval("Reserch")%></td>               
			</tr>
        </ItemTemplate>
        </asp:Repeater>
		</tbody>
	</table>
    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CustomInfoHTML="<div class='content'>第%CurrentPageIndex%/共%PageCount%页/共%RecordCount%条</div>"
                    FirstPageText="首页" LastPageText="末页" NextPageText="下页"
                    PrevPageText="上页" ShowCustomInfoSection="right" 
        ShowPageIndexBox="Never"  PageSize="10" Width="100%" CustomInfoClass="info"
        CssClass="paginator" onpagechanging="AspNetPager1_PageChanging" >
    </webdiyer:AspNetPager>
     </ContentTemplate>
                </asp:UpdatePanel>
    	
    </div>
   </form>
</body>
</html>

